CommandInsertEnvObj Class Reference

#include <CommandInsertEnvObj.h>

Inheritance diagram for CommandInsertEnvObj:

Command List of all members.

Public Member Functions

 CommandInsertEnvObj (osg::Vec3 pos, OSGWindows *osgwind, string pathname, float scale)
bool execute ()
bool unexecute ()

Private Attributes

OSGWindows * osgwind_
EnvironmentObject * envObj
vector< TraffEduObject * > insertedObjs_

Constructor & Destructor Documentation

CommandInsertEnvObj::CommandInsertEnvObj (  osg::Vec3  pos,
OSGWindows *  osgwind,
string  pathname,
float  scale
) 
 

A constructor. Initializes osgwind_ and creates a new environmental object by using the parameter of pathname.

Parameters:
pos a osg::Vec3 variable.
osgwind an OSGWindows pointer.
pathname a string argument.
scale a float argument.


Member Function Documentation

bool CommandInsertEnvObj::execute (   )  [virtual]
 

do the insertion of environmental object operation.

Returns:
Operation success

Implements Command.

bool CommandInsertEnvObj::unexecute (   )  [virtual]
 

undo the insertion of environmental object operation.

Returns:
Operation success

Implements Command.


Member Data Documentation

EnvironmentObject* CommandInsertEnvObj::envObj [private]
 

a private variable. It is used to hold the created environmental object.

vector<TraffEduObject*> CommandInsertEnvObj::insertedObjs_ [private]
 

a private vector of TraffEduObjects. It holds the inserted environmental objects.

OSGWindows* CommandInsertEnvObj::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO